package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 柳文迪
 */
@Mapper
public interface ShoppingCartMapper {

    List<ShoppingCart> list(ShoppingCart shoppingCart);

    void updateNumber(ShoppingCart shoppingCart);

    void insert(ShoppingCart shoppingCart);

    void deleteShoppingCart(@Param("currentId") Long currentId);

    void delete(Long id);
}
